<?php 
include("../conn.php");

class IntegralCoupon {

	public function getPrice($numbers) {
		$sql = "SELECT fan_juan_price FROM goodsorders WHERE numbers = " . $numbers;
		$numbers = mysql_fetch_assoc(mysql_query($sql));
		if($numbers != 0) {
			return $numbers;
		} else {
			return false;
		}
	}
}

$IntegralCoupon = new IntegralCoupon();
$res = $IntegralCoupon->$_GET['action']($_GET['numbers']);
echo json_encode($res);